<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>3Dbox</title>
        <link rel="stylesheet" href="./3dbox.css" />
    </head>
    <body>
        <div class="boxes" id="boxes"></div>
        <button onclick="toggleTransform()">切换</button>
    </body>
    <script src="./3dbox.js"></script>
    <script>
        var instance = new TransformBox("boxes", {
            url: "https://media.giphy.com/media/EZqwsBSPlvSda/giphy.gif",
            // url: "/Users/guosheng/Desktop/vidio.png",
            col: 4,
            row: 4,
            // transtion: "rotateScale",
        });

        function toggleTransform() {
            instance.toggleScroll();
        }
    </script>
</html>
